package com.ustc.hewei.snowflakemodule.segment.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hewei
 * @version 1.0
 * @description: 数据库中的实体类
 * @date 2022/11/16 14:26
 */

@TableName("leaf_alloc")
public class SegmentAlloc implements Serializable {
    @TableId(value = "biz_tag")
    private String bizTag;
    private Long maxId;
    private int step;
    private LocalDateTime updateTime;
    private String description;
    private Long version;

    public String getBizTag() {
        return bizTag;
    }

    public void setBizTag(String bizTag) {
        this.bizTag = bizTag;
    }

    public Long getMaxId() {
        return maxId;
    }

    public void setMaxId(Long maxId) {
        this.maxId = maxId;
    }

    public int getStep() {
        return step;
    }

    public void setStep(int step) {
        this.step = step;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "SegmentAlloc{" +
                "bizTag='" + bizTag + '\'' +
                ", maxId=" + maxId +
                ", step=" + step +
                ", updateTime=" + updateTime +
                ", description='" + description + '\'' +
                ", version=" + version +
                '}';
    }
}
